package com.zf.yichat.api.controller.schedule;

import com.zf.yichat.service.UserWithdrawService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 一句话描述功能
 *
 * @author yichat
 * @date create in 16:51 2019/7/22 2019
 */
@Component
public class WithdrawSchedule {

    @Autowired
    private UserWithdrawService userWithdrawService;

    @Scheduled(fixedDelay = 60 * 1000)
    public void checkWithdrawAuto() {
        userWithdrawService.autoChekWithdaw();
    }
}
